<div ng-include="'/modules/template/header.html'"></div>  
<div class="weizhi">
	<div class="container">
    	<div class="row">
        	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 t_weizhi">
            	当前位置->><a href="main">首页</a>->><a href="">跟踪历史</a>
            </div>
        </div>
    </div>
</div>

<div class="t_main tt_main">
	<div class="container">
    	<div class="row">
			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="padding: 0;">
				<div ng-include="'/modules/template/member_center_menu.html'"></div> 
				<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12 wx_form_box" ng-init="step = 'trackingInfo'">
					<div class="wxbox">
                    	<div class="wx_tabel_titel">
							<a class="wx_table_title_btn" ng-click="listInfoOrListHistory('trackingInfo')" ng-class="{wx_title : step == 'trackingInfo'}">跟踪信息</a>
                            <a class="wx_table_title_btn" ng-click="listInfoOrListHistory('trackingHistory')" ng-class="{wx_title : step == 'trackingHistory'}">跟踪历史</a>
                            <div class="clear"></div>
                        </div>
						<table class="table table-bordered wx_tabel" ng-if="step == 'trackingInfo'">
						    <div class="alert alert-warning" role="alert" style="margin:20px 0 0 0;" ng-if="step == 'trackingInfo'">
						      如需添加历史跟踪信息，选择对应信息点击
						      <button type="button" class="btn btn-primary" ng-click="iKnow()">我知道</button>
						      <button type="button" class="btn btn-primary" ng-click="exportTracking()">导出</button>
						    </div>
                            <thead id="checkHead">
                                <tr>
                                    <th class="wx_table_title"><input type="checkbox" ng-click="toggleCheckBox()"></th>
                                    <th class="wx_table_title">新标准号</th>
                                    <th class="wx_table_title">新标准状态</th>
                                    <th class="wx_table_title">实施时间</th>
                                    <th class="wx_table_title">原标准号</th>
                                    <th class="wx_table_title">原标准状态</th>
                                    <th class="wx_table_title">废止时间</th>
                                    <th class="wx_table_title">推送类型</th>
                                    <th class="wx_table_title">推送时间</th>
                                </tr>
                            </thead>
                            <tbody id="checkBody">
                                <tr ng-repeat="item in pageList">
                                    <td><input type="checkbox" value="{{item.id}}" ng-click="toggleCheckBox(item.id)"></td>
                                    <td class="wx_table_number" style="width: 136px;"><a ui-sref="standard_info({id:item.nA001})">{{item.nA100}}</a></td>
                                    <td>{{item.nA000 | statusFilter}}</td>
                                    <td class="wx_table_number">{{item.nA101}}</td>
                                    <td class="wx_table_number" style="width: 136px;">{{item.oA100}}</td>
                                    <td>{{item.oA000 | statusFilter}}</td>
                                    <td class="wx_table_number">{{item.oA206}}</td>
                                    <td>{{item.pushType | pushTypeFilter}}</td>
                                    <td>{{item.pushDate.year}}-{{item.pushDate.month}}-{{item.pushDate.day}}</td>
                                </tr>
                            </tbody>
                        </table>	
                        <table class="table table-bordered wx_tabel" ng-if="step == 'trackingHistory'">
                            <div class="yg_search phone-top"  ng-if="step == 'trackingHistory'">
							   <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 yg_b1 dd_b1">
							       <span>原标准号：</span>
							       <input type="text" class="dd_input" ng-model="orderCode" name="orderCode" aria-describedby="sizing-addon1">
							   </div>
							   
							   <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 yg_b1 dd_b1">
							        <span>原标准状态：</span>
							        <select ng-model="user.educationV" style="height: 32px; width:145px; border-radius: 0; -webkit-border-radius: 0; -moz-border-radius: 0; -khtml-border-radius: 0;"> <!-- ng-options="education.d_value as education.d_value for education in educationList" -->
				                        <option value="">请选择</option>
				                        <option value="N">现行</option>
				                        <option value="D">作废</option>
				                    </select>
							   </div>
							   <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12 yg_b1 dd_b1 phone-bottom">
							       <button class="yg_chaxun" ng-click="searchTrackingHistory()">查询</button>
							   </div>
							</div>
							<div class="yg_search phone-top"  ng-show="step == 'trackingHistory'">
                               <div class="col-lg-10 col-md-10 col-sm-10 col-xs-12 yg_b1 dd_b1">
                                   <span>起止日期：</span>
                                   <input id="myStartDate" style="width:145px;height:33px;"type="text" class="form_input time"  ng-model="startDate" name="startDate" readonly aria-describedby="sizing-addon1">
                                   <span>-</span>
                                   <input id="myEndDate" style="width:145px;height:33px;"type="text" class="form_input time"  readonly ng-model="endDate" name="endDate" aria-describedby="sizing-addon1">
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12 yg_b1 dd_b1 phone-bottom">
                                    <button class="yg_chaxun" ng-click="exportTrackingHistory()">导出</button>
                                </div>
                            </div>
                            <thead id="checkHead">
                                <tr>
                                    <th class="wx_table_title"><input type="checkbox" ng-click="toggleCheckBox()"></th>
                                    <th class="wx_table_title">新标准号</th>
                                    <th class="wx_table_title">新标准状态</th>
                                    <th class="wx_table_title">实施时间</th>
                                    <th class="wx_table_title">原标准号</th>
                                    <th class="wx_table_title">原标准状态</th>
                                    <th class="wx_table_title">废止时间</th>
                                    <th class="wx_table_title">推送类型</th>
                                    <th class="wx_table_title">推送时间</th>
                                </tr>
                            </thead>
                            <tbody id="checkBody">
                                <tr ng-repeat="item in pageHistoryList">
                                    <td><input type="checkbox" value="{{item.id}}" ng-click="toggleCheckBox(item.id)"></td>
                                    <td class="wx_table_number" style="width: 136px;"><a ui-sref="standard_info({id:item.nA001})">{{item.nA100}}</a></td>
                                    <td>{{item.nA000 | statusFilter}}</td>
                                    <td class="wx_table_number">{{item.nA101}}</td>
                                    <td class="wx_table_number" style="width: 136px;">{{item.oA100}}</td>
                                    <td>{{item.oA000 | statusFilter}}</td>
                                    <td class="wx_table_number">{{item.oA206}}</td>
                                    <td>{{item.pushType | pushTypeFilter}}</td>
                                    <td>{{item.pushDate.year}}-{{item.pushDate.month}}-{{item.pushDate.day}}</td>
                                </tr>
                            </tbody>
                        </table>
						<div class="clearfix"></div>
					</div>
				</div>
			</div>
        </div>
    </div>
</div>
